#ifndef EUQT_T_H
#define EUQT_T_H

#define  MAIN
#include <stdio.h>
#include <stdlib.h>

#include "euqt.h"

//~ #include <QtGui>
//~ #include <QtWebKit>
#include <QtTest/QtTest>
#include <QtDebug>

 
//~ Bool (True, False) = (1==1), (1==0)
#define choose(N, T, F) ((N)?(T):(F))

#undef QTEST_MAIN
#undef QTEST_APPLESS_MAIN

#define QTEST_MAIN(TestObject) \
int main(int argc, char *argv[]) \
{ \
    QApplication app(argc, argv); \
    TestObject tc; \
    int x = QTest::qExec(&tc, argc, argv); \
    for(volatile  long xp=0L;xp<40000L;xp++) printf(".\b");\
    return x;\
}

#define QTEST_APPLESS_MAIN( TestClass ) \
int main(int argc, char *argv[]) \
{ \
   TestClass tc; \
    int x = QTest::qExec(&tc, argc, argv); \
    for(volatile  long xp=0L;xp<40000L;xp++) printf(".\b");\
    return x;\
}


//test definition from idea in arora?

#endif /* EUQT_T_H */
